//
//  CustomView.m
//  FairyDream
//
//  Created by dllo on 15/8/25.
//  Copyright (c) 2015年 dreams. All rights reserved.
//

#import "CustomView.h"

#define Height 73.75
@implementation CustomView

- (void)dealloc
{
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatLable];
    }
    return self;
}

- (void)creatLable
{
    self.colorLable = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, Height)];
    _colorLable.layer.masksToBounds = YES;
    _colorLable.layer.cornerRadius = self.frame.size.width / 2;
    [self addSubview:_colorLable];
    
    
    self.textLable = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.height - 20, self.frame.size.width, 20)];
    _textLable.textAlignment = NSTextAlignmentCenter;
    _textLable.font = [UIFont systemFontOfSize:14];
    [self addSubview:_textLable];
    
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 52, 52)];
    [self addSubview:_imageV];
    
}
@end
